package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 系统异常日志表 实体类
 * 表名：sys_exception_log
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "sys_exception_log")
public class SysExceptionLog implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * id
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 请求方法
     */
    @Column(name = "request_method", length = 255)
    private String requestMethod;
    
    /**
     * 请求类型
     */
    @Column(name = "request_type")
    private Integer requestType;
    
    /**
     * 异常信息
     */
    @Column(name = "ex_message", length = 65535)
    private String exMessage;
    
    /**
     * 异常名称
     */
    @Column(name = "ex_name", length = 65535)
    private String exName;
    
    /**
     * 错误类型
     */
    @Column(name = "ex_type")
    private Integer exType;
    
    /**
     * IP地址
     */
    @Column(name = "ip", length = 64)
    private String ip;
    
    /**
     * 参数
     */
    @Column(name = "param", length = 65535)
    private String param;
    
    /**
     * 是否删除
     * 默认值: 0
     */
    @Column(name = "is_deleted")
    private Integer isDeleted;
    
    /**
     * 创建人
     */
    @Column(name = "create_user_name", length = 32)
    private String createUserName;
    
    /**
     * 创建时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "create_time")
    private java.time.LocalDateTime createTime;
    
    @Override
    public String toString() {
        return "SysExceptionLog{" +
            "id=" + id +
            ", requestMethod=" + requestMethod +
            ", requestType=" + requestType +
            ", exMessage=" + exMessage +
            ", exName=" + exName +
            ", exType=" + exType +
            ", ip=" + ip +
            ", param=" + param +
            ", isDeleted=" + isDeleted +
            ", createUserName=" + createUserName +
            ", createTime=" + createTime +
        '}';
    }
} 